﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ManagerBrand.ascx.cs" Inherits="Administrator_AdminControl_ManagerBrand" %>
<asp:Repeater runat="server" ID="Repeater_BrandList" 
    onitemcommand="Repeater_BrandList_ItemCommand" 
    onitemdatabound="Repeater_BrandList_ItemDataBound" >
    <HeaderTemplate>
        <table width="100%">
            <thead style="background-color:#00A4FF;">
                <tr>
                    <td>STT</td>
                    <td>Ngày tạo</td>
                    <td>ID</td>
                    <td>Tên thuơng hiệu</td>
                    <td>Logo</td>
                    <td>Status</td>
                    <td>DN</td>
                    <td>Chức năng thành viên</td>
                </tr>
            </thead>
    </HeaderTemplate>
    <ItemTemplate>
            <tbody>
                <tr>
                    <td>
                        <%#Container.ItemIndex + 1 %>
                    </td>
                    <td>
                        <%#DateTime.Parse(Eval("date_created").ToString()).ToString("yyyy-mm-dd") %>
                    </td>
                    <td>
                        <%#Eval("Id") %>
                    </td>
                    <td>
                        <%#Eval("name") %>
                    </td>
                    <td>
                        <img width="100" height="100"  src='<%# "uploads/" + Eval("logo") %>' alt='<%#Eval("name") %>' />
                    </td>
                    <td>
                        <asp:Literal runat="server" ID="Literal_Check" Text='<%#Eval("isCheck") %>'></asp:Literal>
                    </td>
                    <td>
                        <asp:Literal runat="server" ID="Literal_Status" Text='<%#Eval("isVip") %>'></asp:Literal>
                    </td>
                    <td>
                        <a runat="server" id="link_See" style="color:Blue;">Xem</a> |
                        <asp:HyperLink runat="server" ID="HyperLink_Update" NavigateUrl='<%# "~/Administrator/Brand_Update.aspx?id=" + Eval("id") %>' Text="Sửa" style="color:Blue;"></asp:HyperLink> |
                        <asp:LinkButton CommandArgument='<%#Eval("id") %>' CommandName="delete" runat="server" ID="LinkButton_Update"  Text="Xóa" OnClientClick="javascript:return confirm('Bạn có muốn xóa thương hiệu này không ?');" style="color:Blue;" />|
                        <asp:LinkButton CommandArgument='<%#Eval("id") %>' CommandName="UpgradeVip" runat="server" ID="LinkButton_UpgradeVip"  Text="Nâng cấp vip"  style="color:Blue;" />
                    </td>
                </tr>
            </tbody>
    </ItemTemplate>
    <FooterTemplate>
            <tfoot></tfoot>
        </table>
    </FooterTemplate>
</asp:Repeater>